<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>超级管理员界面</title>
    <link rel="stylesheet" href="static/css4/bootstrap.min.css">
    <script src="static/jq/jquery.js"></script>
    <script src="static/js4/bootstrap.min.js"></script>
    <style type="text/css">
        html body {
            height: 100%;
            margin: 0;
        }

        .header-logo {
            height: 15%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .bg-content {
            min-height: 100%;
            margin-bottom: -80px;
        }

        .bg- {
            background-color: #6495ED;
        }

    </style>
</head>
<body>
<div class="bg-content">
    <div class="header-logo">
        <h1>欢迎来到超级管理员页面</h1>
    </div>
    <nav class="navbar navbar-expand-sm bg- navbar-dark">
        <div class="container d-flex flex-wrap">
            <ul class="navbar-nav">
                <li class="nav-item"><a href="${pageContext.request.contextPath}/toSmanagerIndex"
                                        class="nav-link link-light px-2">主页</a></li>
                <li class="nav-item"><a href="${pageContext.request.contextPath}/toShowManager"
                                        class="nav-link link-light px-2 " aria-current="page">管理员信息</a></li>
                <li class="nav-item"><a href="${pageContext.request.contextPath}/toSstushow"
                                        class="nav-link link-light px-2">学生信息</a></li>
                <li class="nav-item"><a href="${pageContext.request.contextPath}/toStuShowMistake"
                                        class="nav-link link-light px-2">学生缺勤信息</a></li>
                <li class="nav-item"><a href="${pageContext.request.contextPath}/toUpLoad"
                                        class="nav-link link-light px-2 active">数据上传下载</a></li>
                <li class="nav-item"><a href="${pageContext.request.contextPath}/toUpdates"
                                        class="nav-link link-light px-2">修改个人信息</a></li>
                <li class="nav-item"><a href="${pageContext.request.contextPath}/toUpdates_pw"
                                        class="nav-link link-light px-2">修改密码</a></li>
                <li class="nav-item"><a href="${pageContext.request.contextPath}/toShowAuthor"
                                        class="nav-link link-light px-2">权限管理</a></li>
                <li class="nav-item"><a href="#" class="nav-link link-light px-2">About</a></li>
            </ul>
            <ul class="navbar-nav">
                <li class="nav-item"><a href="#" class="nav-link link-light px-2"></a></li>
                <li class="nav-item">
                    <text class="nav-link link-light px-2" style="color:#000000;"><b>你好，${manager.sname}</b>
                    </text>
                </li>
                <li class="nav-item"><a href="${pageContext.request.contextPath}/logout"
                                        class="nav-link link-light px-2">退出</a></li>
            </ul>
        </div>
    </nav>
    <br>
    <div class="container">
            <form action="${pageContext.request.contextPath}/goUp" role="form" method="post"
                  enctype="multipart/form-data">
                <div class="form-group">
                    <label class="col-sm-2">&nbsp;</label>
                    <label class="col-sm-3 control-label"><b>上传</b></label>
                </div>
                <div class=" form-group">
                    <div>
                        <label class="col-sm-2">&nbsp;</label>
                        <label class="col-sm-3 control-label"><b>文件输入:</b></label>
                        <input class="col-sm-3" type="file" name="file">
                    </div>
                </div>
                <div class="form-group">
                    <div>
                        <label class="col-sm-2">&nbsp;</label>
                        <label class="row col-sm-3 sr-only"><b>请选择上传信息类型：</b></label>
                        <label class="col-sm-3 control-label">
                            <label for="manager">
                                <input type="radio" id="manager" name="info" value="1" checked="checked">管理员信息
                            </label>
                            <label for="stu">
                                <input type="radio" id="stu" name="info" value="2">学生信息
                            </label>
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <div>
                        <label class="col-sm-4">&nbsp;</label>
                        <input type="submit" class="btn btn-success">
                    </div>
                </div>
            </form>
            &nbsp;
            &nbsp;
            <form role="form">
                <div class="form-group">
                    <div>
                        <label class="col-sm-2">&nbsp;</label>
                        <label class="col-sm-3 control-label"><b>下载</b></label>
                    </div>
                    <div>
                        <label class="col-sm-2">&nbsp;</label>
                        <a class="col-sm-2" href="${pageContext.request.contextPath}/goLoadManager">管理员信息下载</a>
                    </div>
                    <div>
                        <label class="col-sm-2">&nbsp;</label>
<%--                        <select id="sel">--%>
<%--                            <option value="1">全部</option>--%>
<%--                            <option value="2">宿舍楼</option>--%>
<%--                        </select>--%>
<%--                        <input id="text_input" type="hidden">--%>
                        <a id="a_up" class="col-sm-2" href="${pageContext.request.contextPath}/goLoadStu">学生信息</a>
                    </div>
                    <div>
                        <label class="col-sm-2">&nbsp;</label>
                        <a class="col-sm-2" href="${pageContext.request.contextPath}/goLoadStuMistake">学生缺勤信息</a>
                    </div>
                </div>
            </form>
    </div>
</div>
<div style="background-color:#fff; height:20px;margin-bottom:0px"></div>
<footer class="footer" style="background-color:#F6F7F8; height:60px;margin-bottom:0px">
    <div class="container text-center">
        <p style="text-align: center;color: #777">
            copy© 2022-2022 舒崇 版权所有
            <br><br>
        </p>
    </div>
    <div id="gotop" style="display: block;"><a class="gotop" draggable="false"></a></div>
</footer>
<script type="text/javascript">
    <%--var sel = $("#sel").val()--%>
    <%--var cdorm =$("#text_input").val()--%>
    <%--$("#sel").change(function () {--%>
    <%--    sel = $("#sel").val()--%>
    <%--    if(sel==1){--%>
    <%--        $("#text_input").val("")--%>
    <%--        $("#text_input").prop("type","hidden")--%>
    <%--    }else {--%>
    <%--        $("#text_input").prop("type","text")--%>
    <%--    }--%>
    <%--})--%>
    <%--$("#text_input").change(function () {--%>
    <%--    cdorm =$("#text_input").val()--%>
    <%--    $.ajax({--%>
    <%--        url:"${pageContext.request.contextPath}/findAll",--%>
    <%--        type:"GET",--%>
    <%--        data:"cdorm="+cdorm,--%>
    <%--        success:function (result) {--%>
    <%--            if(result.code==200){--%>
    <%--                alert(result.extend.msg)--%>
    <%--            }else{--%>
    <%--                $.ajax({--%>
    <%--                    url:"${pageContext.request.contextPath}/goLoadStu",--%>
    <%--                    data:"cdorm="+cdorm,--%>
    <%--                    type:"GET",--%>
    <%--                    success:function (result) {--%>
    <%--                        if(result.code==200) {--%>
    <%--                            alert(result.extend.msg)--%>
    <%--                        }--%>
    <%--                    }--%>
    <%--                })--%>
    <%--            }--%>
    <%--        }--%>
    <%--    })--%>
    <%--})--%>
    <%--$("#a_up").click(function () {--%>
    <%--    var sel = $("#sel").val()--%>
    <%--    cdorm =$("#text_input").val()--%>

    <%--    if(sel==1){--%>
    <%--        &lt;%&ndash;$.ajax({&ndash;%&gt;--%>
    <%--        &lt;%&ndash;    url:"${pageContext.request.contextPath}/goLoadStu",&ndash;%&gt;--%>
    <%--        &lt;%&ndash;    type:"GET",&ndash;%&gt;--%>
    <%--        &lt;%&ndash;    success:function (result) {&ndash;%&gt;--%>
    <%--        &lt;%&ndash;        if(result.code==200){&ndash;%&gt;--%>
    <%--        &lt;%&ndash;            alert(result.extend.msg)&ndash;%&gt;--%>
    <%--        &lt;%&ndash;        }else{&ndash;%&gt;--%>
    <%--        &lt;%&ndash;            $("#a_up").prop("href","${pageContext.request.contextPath}/goLoadStu")&ndash;%&gt;--%>
    <%--        &lt;%&ndash;        }&ndash;%&gt;--%>
    <%--        &lt;%&ndash;    }&ndash;%&gt;--%>
    <%--        &lt;%&ndash;})&ndash;%&gt;--%>
    <%--        $("#a_up").prop("href","${pageContext.request.contextPath}/goLoadStu")--%>
    <%--    }else {--%>
    <%--        $.ajax({--%>
    <%--            url:"${pageContext.request.contextPath}/goLoadStu",--%>
    <%--            data:"cdorm="+cdorm,--%>
    <%--            type:"GET",--%>
    <%--            success:function (result) {--%>
    <%--                if(result.code==200) {--%>
    <%--                    alert(result.extend.msg)--%>
    <%--                }--%>
    <%--                return;--%>
    <%--                &lt;%&ndash;}else{&ndash;%&gt;--%>
    <%--                &lt;%&ndash;    $("#a_up").prop("href","${pageContext.request.contextPath}/goLoadStu?cdorm="+cdorm)&ndash;%&gt;--%>
    <%--                &lt;%&ndash;}&ndash;%&gt;--%>
    <%--            }--%>
    <%--        })--%>
    <%--        $("#a_up").prop("href","${pageContext.request.contextPath}/goLoadStu?cdorm="+cdorm)--%>
    <%--        $("#a_up").click(result =>{--%>
    <%--            if(result.code==200){--%>
    <%--                alert(result.extend.msg)--%>
    <%--            }--%>
    <%--        })--%>
    <%--     }--%>
    <%-- })--%>


</script>
</body>
</html>
